import { createStore } from 'vuex'
import { testData, testPosts, ColumnProps, PostProps } from '@/testData'
export interface UserProps {
  isLogin: boolean;
  nickName?: string;
  id?: string;
}
export interface GlobalDataProps {
 columns: ColumnProps[];
  posts: PostProps[];
  user: UserProps;
}
const store = createStore<GlobalDataProps>({
  state: {
    columns: testData,
    posts: testPosts,
    user: { isLogin: false }
  }
})
export default store
